package com.example.javabasic.shejimoshi.gongchangfangfa.demo1;
//具体工厂B
public class ConcreteFactoryB implements AbstractFactory{
    @Override
    public Product newProduct() {
        System.out.println("具体工厂B -> 具体产品B");
        return new ConcreteProductB();
    }
}
